"""
1、下面程序的功能是：给定一下学生姓名和成绩，输出所有不及格的学生姓名和成绩，请找出错误并修改验证
"""
# 错误代码
students = [
    ['赵', 60],
    ['钱', 34],
    ['孙', 89],
    ['李', 56],
    ['周', 90],
]
# for student in students:
#     print(student)
    # if student < 60:
    #     name = student[1]
    #     score = student[2]
    #     print('姓名：',name,'\t','成绩：',score)
# 正确代码
for student in students:
    if student[1] < 60:
        name = student[0]
        score = student[1]
        print('姓名：',name,'\t','成绩：',score)